package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;
import com.lagou.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * @author HZF
 * @date 2020/4/2220:55
 * description
 */
public interface Executor {

    public <E> List<E> query(Configuration configuration, MappedStatement mappedStatement,Object... params) throws SQLException, Exception;

    public boolean update(Configuration configuration, MappedStatement mappedStatement, Object... params) throws SQLException,Exception;

    public boolean delete(Configuration configuration,MappedStatement mappedStatement,Object... params) throws SQLException,Exception;
}
